<?php

namespace App\Admin\Renderables;

use App\Admin\Controllers\TutorController;
use App\Models\Tutor;
use Dcat\Admin\Layout\Row;
use Dcat\Admin\Support\LazyRenderable;

class TutorShowRenderable extends LazyRenderable
{
    public function render()
    {
        // 获取外部传递的参数
        $payload = $this->payload;
        $content = (new TutorController)->detail($payload['id'], 'dialog');
        return $content;
    }
}